package com.android.lovertest;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class WelcomeActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		ImageView iv = new ImageView(this);
		iv.setBackgroundResource(R.drawable.welcome);
		setContentView(iv);

		iv.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				startActivity(new Intent(WelcomeActivity.this,
						ChooseHostActivity.class));
				finish();
			}
		});
	}
}
